using MicroMsg.Common.Utils;
using MicroMsg.Storage;
using System;
using System.Threading;
namespace MicroMsg.Manager
{
	public class StorageMgr
	{
		private static AccountStorage _account;
		private static ConversationStorage _converation;
		private static ContactStorage _contact;
		private static ChatMsgStorage _chatMsg;
		private static QFriendStorage _qfriend;
		private static QGroupStorage _qgroup;
		private static HDheadImgStorage _hdheadimg;
		private static OpLogStorage _oplog;
		private static MsgImgStorage _msgImg;
		private static MsgVoiceStorage _msgVoice;
		private static MsgVideoStorage _msgVideo;
		private static ChatRoomStorage _chatRoom;
		private static MobileContactStorage _mobileContact;
		private static EmojiArtStorage _emojiArt;
		private static EmojiArtGroupStorage _emojiArtGroup;
		private static QConversationStorage _qconv;
		private static BConversationStorage _bconv;
		private static NewsStorage _news;
		private static ShakePeopleStorage _shackContact;
		private static MassMsgStorage _massMsg;
		private static BottleInfoStorage _bottle;
		private static BottleContactStorage _bContact;
		private static FBContactStorage _fbContact;
		private static SnsInfoStorage _snsInfo;
		private static SnsPageStorage _snsPage;
		private static SnsMsgStorage _snsMsg;
		private static SnsTransStorage _snsTrans;
		private static SnsTagInfoStorage _snsTag;
		public static AccountStorage account
		{
			get
			{
				if (StorageMgr._account == null)
				{
					StorageMgr._account = new AccountStorage();
				}
				return StorageMgr._account;
			}
		}
		public static ConversationStorage converation
		{
			get
			{
				if (StorageMgr._converation == null)
				{
					StorageMgr._converation = new ConversationStorage();
				}
				return StorageMgr._converation;
			}
		}
		public static ContactStorage contact
		{
			get
			{
				if (StorageMgr._contact == null)
				{
					StorageMgr._contact = new ContactStorage();
				}
				return StorageMgr._contact;
			}
		}
		public static ChatMsgStorage chatMsg
		{
			get
			{
				if (StorageMgr._chatMsg == null)
				{
					StorageMgr._chatMsg = new ChatMsgStorage();
				}
				return StorageMgr._chatMsg;
			}
		}
		public static QFriendStorage qfriend
		{
			get
			{
				if (StorageMgr._qfriend == null)
				{
					StorageMgr._qfriend = new QFriendStorage();
				}
				return StorageMgr._qfriend;
			}
		}
		public static QGroupStorage qgroup
		{
			get
			{
				if (StorageMgr._qgroup == null)
				{
					StorageMgr._qgroup = new QGroupStorage();
				}
				return StorageMgr._qgroup;
			}
		}
		public static HDheadImgStorage hdheadimg
		{
			get
			{
				if (StorageMgr._hdheadimg == null)
				{
					StorageMgr._hdheadimg = new HDheadImgStorage();
				}
				return StorageMgr._hdheadimg;
			}
		}
		public static OpLogStorage oplog
		{
			get
			{
				if (StorageMgr._oplog == null)
				{
					StorageMgr._oplog = new OpLogStorage();
				}
				return StorageMgr._oplog;
			}
		}
		public static MsgImgStorage msgImg
		{
			get
			{
				if (StorageMgr._msgImg == null)
				{
					StorageMgr._msgImg = new MsgImgStorage();
				}
				return StorageMgr._msgImg;
			}
		}
		public static MsgVoiceStorage msgVoice
		{
			get
			{
				if (StorageMgr._msgVoice == null)
				{
					StorageMgr._msgVoice = new MsgVoiceStorage();
				}
				return StorageMgr._msgVoice;
			}
		}
		public static MsgVideoStorage msgVideo
		{
			get
			{
				if (StorageMgr._msgVideo == null)
				{
					StorageMgr._msgVideo = new MsgVideoStorage();
				}
				return StorageMgr._msgVideo;
			}
		}
		public static ChatRoomStorage chatRoom
		{
			get
			{
				if (StorageMgr._chatRoom == null)
				{
					StorageMgr._chatRoom = new ChatRoomStorage();
				}
				return StorageMgr._chatRoom;
			}
		}
		public static MobileContactStorage mobileContact
		{
			get
			{
				if (StorageMgr._mobileContact == null)
				{
					StorageMgr._mobileContact = new MobileContactStorage();
				}
				return StorageMgr._mobileContact;
			}
		}
		public static EmojiArtStorage emojiArt
		{
			get
			{
				if (StorageMgr._emojiArt == null)
				{
					StorageMgr._emojiArt = new EmojiArtStorage();
				}
				return StorageMgr._emojiArt;
			}
		}
		public static EmojiArtGroupStorage emojiArtGroup
		{
			get
			{
				if (StorageMgr._emojiArtGroup == null)
				{
					StorageMgr._emojiArtGroup = new EmojiArtGroupStorage();
				}
				return StorageMgr._emojiArtGroup;
			}
		}
		public static QConversationStorage qconv
		{
			get
			{
				if (StorageMgr._qconv == null)
				{
					StorageMgr._qconv = new QConversationStorage();
				}
				return StorageMgr._qconv;
			}
		}
		public static BConversationStorage bconv
		{
			get
			{
				if (StorageMgr._bconv == null)
				{
					StorageMgr._bconv = new BConversationStorage();
				}
				return StorageMgr._bconv;
			}
		}
		public static NewsStorage news
		{
			get
			{
				if (StorageMgr._news == null)
				{
					StorageMgr._news = new NewsStorage();
				}
				return StorageMgr._news;
			}
		}
		public static ShakePeopleStorage shackContact
		{
			get
			{
				if (StorageMgr._shackContact == null)
				{
					StorageMgr._shackContact = new ShakePeopleStorage();
				}
				return StorageMgr._shackContact;
			}
		}
		public static MassMsgStorage massMsg
		{
			get
			{
				if (StorageMgr._massMsg == null)
				{
					StorageMgr._massMsg = new MassMsgStorage();
				}
				return StorageMgr._massMsg;
			}
		}
		public static BottleInfoStorage bottle
		{
			get
			{
				if (StorageMgr._bottle == null)
				{
					StorageMgr._bottle = new BottleInfoStorage();
				}
				return StorageMgr._bottle;
			}
		}
		public static BottleContactStorage bContact
		{
			get
			{
				if (StorageMgr._bContact == null)
				{
					StorageMgr._bContact = new BottleContactStorage();
				}
				return StorageMgr._bContact;
			}
		}
		public static FBContactStorage fbContact
		{
			get
			{
				if (StorageMgr._fbContact == null)
				{
					StorageMgr._fbContact = new FBContactStorage();
				}
				return StorageMgr._fbContact;
			}
		}
		public static SnsInfoStorage snsInfo
		{
			get
			{
				if (StorageMgr._snsInfo == null)
				{
					StorageMgr._snsInfo = new SnsInfoStorage();
				}
				return StorageMgr._snsInfo;
			}
		}
		public static SnsPageStorage snsPage
		{
			get
			{
				if (StorageMgr._snsPage == null)
				{
					StorageMgr._snsPage = new SnsPageStorage();
				}
				return StorageMgr._snsPage;
			}
		}
		public static SnsMsgStorage snsMsg
		{
			get
			{
				if (StorageMgr._snsMsg == null)
				{
					StorageMgr._snsMsg = new SnsMsgStorage();
				}
				return StorageMgr._snsMsg;
			}
		}
		public static SnsTransStorage snsTrans
		{
			get
			{
				if (StorageMgr._snsTrans == null)
				{
					StorageMgr._snsTrans = new SnsTransStorage();
				}
				return StorageMgr._snsTrans;
			}
		}
		public static SnsTagInfoStorage snsTag
		{
			get
			{
				if (StorageMgr._snsTag == null)
				{
					StorageMgr._snsTag = new SnsTagInfoStorage();
				}
				return StorageMgr._snsTag;
			}
		}
		public static void init()
		{
			DebugEx.MainThreadID = Thread.get_CurrentThread().get_ManagedThreadId();
		}
		public static void onLogin(string usrName)
		{
			StorageBasic.onLogin(usrName);
		}
		public static void onLogout()
		{
			StorageBasic.onLogout();
		}
	}
}
